package com.example.demo.dto;

import java.util.List;

public class DeepSeekResponse {
    private String id;
    private String object;
    private long created;
    private String model;
    private List<Choice> choices;
    private Usage usage;
    private String system_fingerprint;

    // 手动添加getter方法
    public List<Choice> getChoices() {
        return choices;
    }

    // 其他getter和setter方法...

    public static class Choice {
        private int index;
        private Message message;
        private Object logprobs;
        private String finish_reason;

        // 手动添加getter方法
        public Message getMessage() {
            return message;
        }

        // 其他getter和setter方法...

        public static class Message {
            private String role;
            private String content;

            // 手动添加getter方法
            public String getContent() {
                return content;
            }

            // 其他getter和setter方法...
        }
    }

    public static class Usage {
        private int prompt_tokens;
        private int completion_tokens;
        private int total_tokens;
        private PromptTokensDetails prompt_tokens_details;
        private int prompt_cache_hit_tokens;
        private int prompt_cache_miss_tokens;

        public static class PromptTokensDetails {
            private int cached_tokens;
        }
    }
}